import './icon.less';
import { createSvgIcon } from '../utils';
import IconAddCircle from './icon-add-circle';
import IconAdd from './icon-add';
import IconArrowRight from './icon-arrow-right';
import IconArrowDropDown from './icon-arrow-drop-down';
import IconBack from './icon-back';
import IconBars from './icon-bars';
import IconC2C from './icon-c2c';
import IconCheckCircle from './icon-check-circle';
import IconCheck from './icon-check';
import IconCheckboxBorder from './icon-checkbox-border';
import IconCheckbox from './icon-checkbox';
import IconClose from './icon-close';
import IconEdit from './icon-edit';
import IconFullscreen from './icon-fullscreen';
import IconInvisible from './icon-invisible';
import IconMarket from './icon-market';
import IconMore from './icon-more';
import IconProfile from './icon-profile';
import IconRemove from './icon-remove';
import IconSearch from './icon-search';
import IconStar from './icon-star';
import IconSub from './icon-sub';
import IconTrade from './icon-trade';
import IconVisible from './icon-visible';

export default function (Vue) {
  [
    createSvgIcon('co-icon-add-circle', IconAddCircle),
    createSvgIcon('co-icon-add', IconAdd),
    createSvgIcon('co-icon-arrow-drop-down', IconArrowDropDown),
    createSvgIcon('co-icon-arrow-right', IconArrowRight),
    createSvgIcon('co-icon-back', IconBack),
    createSvgIcon('co-icon-bars', IconBars),
    createSvgIcon('co-icon-c2c', IconC2C),
    createSvgIcon('co-icon-check-circle', IconCheckCircle),
    createSvgIcon('co-icon-check', IconCheck),
    createSvgIcon('co-icon-checkbox-border', IconCheckboxBorder),
    createSvgIcon('co-icon-checkbox', IconCheckbox),
    createSvgIcon('co-icon-close', IconClose),
    createSvgIcon('co-icon-edit', IconEdit),
    createSvgIcon('co-icon-fullscreen', IconFullscreen),
    createSvgIcon('co-icon-invisible', IconInvisible),
    createSvgIcon('co-icon-market', IconMarket),
    createSvgIcon('co-icon-more', IconMore),
    createSvgIcon('co-icon-profile', IconProfile),
    createSvgIcon('co-icon-remove', IconRemove),
    createSvgIcon('co-icon-search', IconSearch),
    createSvgIcon('co-icon-star', IconStar),
    createSvgIcon('co-icon-sub', IconSub),
    createSvgIcon('co-icon-trade', IconTrade),
    createSvgIcon('co-icon-visible', IconVisible)
  ].forEach((icon) => {
    Vue.component(icon.name, icon);
  });
}
